import request from '@/utils/request'

// 查询总账列表
export function listZcGeneralLedger(query) {
  return request({
    url: '/business/ZcGeneralLedger/list',
    method: 'get',
    params: query
  })
}

// 查询总账详细
export function getZcGeneralLedger(id) {
  return request({
    url: '/business/ZcGeneralLedger/' + id,
    method: 'get'
  })
}

// 新增总账
export function addZcGeneralLedger(data) {
  return request({
    url: '/business/ZcGeneralLedger',
    method: 'post',
    data: data
  })
}

// 修改总账
export function updateZcGeneralLedger(data) {
  return request({
    url: '/business/ZcGeneralLedger',
    method: 'put',
    data: data
  })
}

// 删除总账
export function delZcGeneralLedger(id) {
  return request({
    url: '/business/ZcGeneralLedger/' + id,
    method: 'delete'
  })
}
